import Vue from 'vue'
import store from './store/store.js'
import router from './router/router.js'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import axios from 'axios' //后台请求模块，调用以前thinkPHP 里面写的方法
import myF from "./components/myFuntion/myFuntion.js"
import VueClipboard from 'vue-clipboard2'

Vue.prototype.$myF = myF// 添加到Vue，全局可以用this调用
Vue.prototype.$axios = axios
axios.defaults.baseURL = '/index.php/pcb/login'//ajax请求默认地址前端部分，我司编号的流水编号都是通过请求来获得的
axios.defaults.headers.post['Content-Type'] = 'application/json';
Vue.config.productionTip = false //生产环境

Vue.use(VueClipboard)
Vue.use(ElementUI)

//Vue.config.productionTip = false

new Vue({
  router,
  store,//所有组件对象都多一个属性：$store
  render: h => h(App),
}).$mount('#app')
